package com.realgodo.site.entity.dic;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.JoinColumn;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.realgodo.site.entity.IdEntity;


@Entity(name="ConstellationBlood")
@Table(name = "constellation_blood")
@Inheritance(strategy = InheritanceType.JOINED)
public class ConstellationBlood extends IdEntity{

	/***/
	private static final long serialVersionUID = -5082580160985649635L;
	
	private String name;
//	/**性格及气质 详细*/
//	private String individuality;
//	/**爱与性的倾向*/
//	private String sexTendency;
//	/**婚姻及家庭*/
//	private String family;
//	/**事业及成功 */
//	private String achievement;
//	/**金钱及财运  */
//	private String money;
	
	/**简介*/
	private String comment;
	
	private Constellation constellation;
	
	@ManyToOne
	@JoinColumn(name = "constellation_id", referencedColumnName = "id", nullable = false)
	public Constellation getConstellation() {
		return constellation;
	}
	public void setConstellation(Constellation constellation) {
		this.constellation = constellation;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	@Lob
	@Basic(fetch=FetchType.LAZY)
	@Column(name = "comment", insertable = true, updatable = true)
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}
//	public String getIndividuality() {
//		return individuality;
//	}
//	public void setIndividuality(String individuality) {
//		this.individuality = individuality;
//	}
//	public String getSexTendency() {
//		return sexTendency;
//	}
//	public void setSexTendency(String sexTendency) {
//		this.sexTendency = sexTendency;
//	}
//	public String getFamily() {
//		return family;
//	}
//	public void setFamily(String family) {
//		this.family = family;
//	}
//	public String getAchievement() {
//		return achievement;
//	}
//	public void setAchievement(String achievement) {
//		this.achievement = achievement;
//	}
//	public String getMoney() {
//		return money;
//	}
//	public void setMoney(String money) {
//		this.money = money;
//	}
//	
	

}
